﻿using System;

namespace PublishIP
{
    class Program
    {
        static void Main(string[] args)
        {
            var logService = new LogService();
            try
            {
                var host = args[0];
                var name = args[1];
                var password = args[2];
                IpService ipService = new IpService(logService);
                ipService.StartPublishIp(host,name,password);
                Console.ReadKey();
            }
            catch(Exception ex)
            {
                logService.Log($"{ex}\r\neg:PublishIP host name password");
                
            }
        }
    }
}
